#ifndef __SOCKET_IO__
#define __SOCKET_IO__
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
class SocketIO{

public:
    SocketIO();
    ~SocketIO();
    explicit SocketIO(int fd);
    int readn(char *buf, int len); //读信息
    int writen(const char *buf, int len); //写信息
    int readLine(char *buf, int len);
private:
    int _fd;
};
#endif